package com.example.demo.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author Jensen Zhan
 */
@Component
public class OpenThread implements ApplicationRunner {

    @Autowired
    private ThreadService threadService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        threadService.sendMessage1();
//        threadService.sendMessage2();
//        System.out.println("end ...");
    }
}
